import { useState } from 'react'
export default function App() {
  const [count, setCount] = useState(0)
  const [isShow, setIsShow] = useState(true)
  const handleClick = () => {
    console.log('点击事件+1')
    setCount(count + 1)
  }
  return (
    <div>
      <div>App</div>
      <h1>count:{count}</h1>
      <button onClick={handleClick}>点击+1</button>
      <button onClick={() => setIsShow(!isShow)}>显示与隐藏</button>
      <h3 hidden={!isShow}>展示盒子</h3>
    </div>
  )
}
